package cn.stylefeng.guns.sys.modular.metadataCol.mapper;

import cn.stylefeng.guns.sys.modular.metadataCol.entity.MetadataCol;
import cn.stylefeng.guns.sys.modular.metadataCol.model.params.MetadataColParam;
import cn.stylefeng.guns.sys.modular.metadataCol.model.result.MetadataColResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 数据元表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-11-19
 */
public interface MetadataColMapper extends BaseMapper<MetadataCol> {

    /**
     * 获取列表
     *
     * @author author
     * @Date 2020-11-19
     */
    List<MetadataColResult> customList(@Param("paramCondition") MetadataColParam paramCondition);

    /**
     * 获取map列表
     *
     * @author author
     * @Date 2020-11-19
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") MetadataColParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author author
     * @Date 2020-11-19
     */
    Page<MetadataColResult> customPageList(@Param("page") Page page, @Param("paramCondition") MetadataColParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author author
     * @Date 2020-11-19
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") MetadataColParam paramCondition);


    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    int deleteMetadataDetail(@Param("id") String id);

}
